<?php
/**
 * Created by PhpStorm.
 * User: Epii
 * Date: 2019/9/12
 * Time: 10:51 AM
 *
 * 这个文件可以改动。之后的更新 使用 composer update
 *
 */
use epii\admin\center\App;
use epii\admin\center\ProjectConfig;
use epii\server\Args;

date_default_timezone_set('Asia/Shanghai');

require_once __DIR__."/../vendor/autoload.php";
$app = (new App(__DIR__ . "/../config.json"));
\epii\admin\center\ProjectConfig::_setLoginPageConfig(new \libs\init\LoginPageConfigInit());

ProjectConfig::_setAdminCenterPlusInitConfig(new \epii\admin\center\config\AdminCenterPlusInitConfig());
if(\epii\admin\center\config\Settings::get('erro_switch')){
    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);
    ini_set('display_errors', 'On');
}



epii\admin\ui\EpiiAdminUi::setBaseConfig(
    [
        "static_url_pre" => '/app/epiiadmin-js/', "fontawesome_fonts_url_pre" => "/app/epiiadmin-js/js/plugins/font-awesome/fonts/"
    ]
);

App::getInstance()->init(\init\example::class)
//    ->init(\libs\init\uploadInit::class)
    ->init(\libs\init\storage_init::class)
    ->setBaseNameSpace("app")->run();